<!--
  @author wangjie
  @since 2019/07/31
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{field:'blacklistNum', unresize:true, align:'center'}">[[${title}]]</th>
        <th lay-data="{field:'blacklistType', width:80, unresize:true, align:'left'}">[[${title}]]类型</th>
        <th lay-data="{field:'creater',  unresize:true,width:80, align:'left'}">创建者</th>
        <th lay-data="{field:'createTime', unresize:true,width:100, align:'left'}">创建日期</th>
        <!--规定操作列置于最后-->
        <th lay-data="{field:'操作', width:80, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>
    <tbody>
        <tr th:each="item:${items}">
            <td th:text="${item.blacklistNum}"></td>
            <td th:text="黑名单"></td>
            <td th:text="${item.creater}"></td>
            <td th:text="${T(com.zmn.common.utils.date.DateUtil).subDate(item.createTime)}"></td>
            <td>
                <button type="button" class="layui-btn layui-btn-xs" th:onclick="deleteBlacklist([[${item.blacklistId}]],[[${item.blacklistNum}]]);"><i class="layui-icon">&#xe642;</i>删除</button>
            </td>
        </tr>
    </tbody>
</table>
